﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace PES_TurnierManager
{
    public class ResultButton : Button
    {
        private uint mMatchID;

        //References to the proper Textobxes of the matchups
        private TextBlock mGuestScore; //Block that holds the homescore
        private TextBlock mHomeScore; //Block that holds the guestscore
        private TextBlock mMatchupBlock; //Block that holds the matchup

        public ResultButton(TextBlock homeScoreBlock, TextBlock guestScoreBlock, TextBlock matchupBlock)
        {
            mHomeScore = homeScoreBlock;
            mGuestScore = guestScoreBlock;
            mMatchupBlock = matchupBlock;
        }

        public void setMatchID(uint ID)
        {
            mMatchID = ID;
        }

        public uint getMatchID()
        {
            return mMatchID;
        }

        public void setMatchupScore(string homeScore, string guestScore)
        {
            mGuestScore.Text = guestScore;
            mHomeScore.Text = homeScore;
        }

        public string getMatchup()
        {
            return mMatchupBlock.Text;
        }
    }
}
